package com.lingxu.api.ztb.mapper;

import com.lingxu.api.ztb.model.Y029Zdcqbgxy;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lingxu.api.ztb.model.vo.Y029ZdcqbgxyVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;


import java.util.List;

/**
 * 征地拆迁包干协议 Mapper接口
 *
 * @author admin
 * @since 2025-09-18
 */
@Mapper
public interface Y029ZdcqbgxyMapper extends BaseMapper<Y029Zdcqbgxy> {
    /**
     * 查询征地拆迁包干协议
     *
     * @return
     */
    List<Y029ZdcqbgxyVO> selectY029ZdcqbgxyList(@Param("query") Y029ZdcqbgxyVO vo);

    IPage<Y029ZdcqbgxyVO> pageList(@Param("page") Page<Y029ZdcqbgxyVO> page, @Param("query") Y029ZdcqbgxyVO vo);

    List<Y029ZdcqbgxyVO> getDataForExport(@Param("query") Y029ZdcqbgxyVO vo);

    void createTempTable(@Param("batchFlag")String batchFlag);
    void insertTempTable(@Param("list") List<Y029ZdcqbgxyVO> dataList, @Param("batchFlag")String batchFlag);
    void insertTable(@Param("batchFlag")String batchFlag);
    void dropTempTable(@Param("batchFlag")String batchFlag);
}
